.class Lcom/htc/android/footprints/activity/FootprintCamera$9;
.super Lcom/htc/android/footprints/ILocationAgentCallback$Stub;
.source "FootprintCamera.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/FootprintCamera;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintCamera;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintCamera;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 1008
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-direct {p0}, Lcom/htc/android/footprints/ILocationAgentCallback$Stub;-><init>()V

    return-void
.end method


# virtual methods
.method public onAgentPause()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 1009
    const-string v0, "FootprintCamera"

    const-string v1, "onAgentPause"

    invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1010
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v0, :cond_0

    .line 1011
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v0}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V

    .line 1014
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    .line 1015
    return-void
.end method

.method public onUpdateStatus(IIDD)V
    .locals 6
    .parameter "status"
    .parameter "signallevel"
    .parameter "latitude"
    .parameter "longitude"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 915
    packed-switch p1, :pswitch_data_0

    .line 1006
    :goto_0
    return-void

    .line 917
    :pswitch_0
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 918
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, p2}, Landroid/widget/ImageView;->setImageLevel(I)V

    .line 921
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->gpsText:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2800(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/TextView;

    move-result-object v3

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const v5, 0x7f0a0012

    invoke-virtual {v4, v5}, Lcom/htc/android/footprints/activity/FootprintCamera;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 925
    const-string v3, "FootprintCamera"

    const-string v4, "onUpdateStatus : INDICATOR_STOP"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 930
    :pswitch_1
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->gpsText:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2800(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/TextView;

    move-result-object v3

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const v5, 0x7f0a0011

    invoke-virtual {v4, v5}, Lcom/htc/android/footprints/activity/FootprintCamera;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 932
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-boolean v3, v3, Lcom/htc/android/footprints/activity/FootprintCamera;->indicatorFlag:Z

    if-eqz v3, :cond_0

    .line 933
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, p2}, Landroid/widget/ImageView;->setImageLevel(I)V

    .line 934
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v4, 0x0

    iput-boolean v4, v3, Lcom/htc/android/footprints/activity/FootprintCamera;->indicatorFlag:Z

    .line 941
    :goto_1
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, p2}, Landroid/widget/ImageView;->setImageLevel(I)V

    goto :goto_0

    .line 937
    :cond_0
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageLevel(I)V

    .line 938
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v4, 0x1

    iput-boolean v4, v3, Lcom/htc/android/footprints/activity/FootprintCamera;->indicatorFlag:Z

    goto :goto_1

    .line 954
    :pswitch_2
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 955
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, p2}, Landroid/widget/ImageView;->setImageLevel(I)V

    .line 957
    const-wide v3, 0x412e848000000000L

    mul-double/2addr v3, p3

    double-to-int v3, v3

    invoke-static {v3}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v0

    .line 958
    .local v0, text_lat:Ljava/lang/String;
    const-wide v3, 0x412e848000000000L

    mul-double/2addr v3, p5

    double-to-int v3, v3

    invoke-static {v3}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v2

    .line 959
    .local v2, text_lon:Ljava/lang/String;
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ", "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 960
    .local v1, text_location:Ljava/lang/String;
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->gpsText:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$2800(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/widget/TextView;

    move-result-object v3

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 962
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v3

    if-nez v3, :cond_1

    .line 963
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    new-instance v4, Landroid/location/Location;

    const-string v5, "gps"

    invoke-direct {v4, v5}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v3, v4}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$502(Lcom/htc/android/footprints/activity/FootprintCamera;Landroid/location/Location;)Landroid/location/Location;

    .line 965
    :cond_1
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v3

    invoke-virtual {v3, p3, p4}, Landroid/location/Location;->setLatitude(D)V

    .line 966
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v3

    invoke-virtual {v3, p5, p6}, Landroid/location/Location;->setLongitude(D)V

    .line 978
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v3}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V

    .line 981
    const-string v3, "FootprintCamera"

    const-string v4, "onUpdateStatus : INDICATOR_FIX_GPS"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 985
    .end local v0           #text_lat:Ljava/lang/String;
    .end local v1           #text_location:Ljava/lang/String;
    .end local v2           #text_lon:Ljava/lang/String;
    :pswitch_3
    const-string v3, "FootprintCamera"

    const-string v4, "onUpdateStatus : INDICATOR_FIX_NETWORK"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 986
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    new-instance v4, Landroid/location/Location;

    const-string v5, "network"

    invoke-direct {v4, v5}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixNetwork:Landroid/location/Location;
    invoke-static {v3, v4}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$702(Lcom/htc/android/footprints/activity/FootprintCamera;Landroid/location/Location;)Landroid/location/Location;

    .line 987
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixNetwork:Landroid/location/Location;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v3

    invoke-virtual {v3, p3, p4}, Landroid/location/Location;->setLatitude(D)V

    .line 988
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixNetwork:Landroid/location/Location;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v3

    invoke-virtual {v3, p5, p6}, Landroid/location/Location;->setLongitude(D)V

    goto/16 :goto_0

    .line 1002
    :pswitch_4
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$9;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v3, v3, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v3}, Lcom/htc/android/footprints/ILocationAgentService;->continueTracking()V

    .line 1003
    const-string v3, "FootprintCamera"

    const-string v4, "onUpdateStatus : INDICATOR_TIMEOUT"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 915
    nop

    :pswitch_data_0
    .packed-switch 0xa
        :pswitch_0
        :pswitch_1
        :pswitch_4
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
